module.exports = {
  devServer: {
    host: '0.0.0.0',
    hot: true,
    open: false,
    overlay: {
      warnings: true,
      errors: true
    },
    proxy: {
      '/api': {
        target: 'http://www.hyhwky.com:3000', // 开发环境
        ws: true,
        changeOrigin: true,
        pathRewrite: {'^/api' : ''}
      },
      '/test': {
        target: 'http://www.hyhwky.com:3000/', // 测试环境
        ws: true,
        changeOrigin: true,
        pathRewrite: {'^/test' : ''}
      }
    }
  }
}